Cross-language Clone Detection
نویسندگان
چکیده
Code duplication is a common software development practice that introduces several similar or identical segments of code, or code clones. In addition, there is currently a trend towards the use of multiple languages in the development of software systems. While there has been much work on clone detection and increased interest in studies of multi-language software systems, there have been no studies of code clones that span multiple languages, which we term cross-language code clones. In this paper we describe an approach for cross-language clone detection. We then introduce a tool, which is based on the CodeDOM library that is included with the Microsoft .NET Framework, to demonstrate the existence of cross-language clones in a real software system that contains both C# and Visual Basic.NET source code. Because our clone detection algorithm operates on a tree structure, other tree-based clone detection algorithms could be substituted in the implementation of our tool.
منابع مشابه
Cross Language Higher Level Clone Detection- Between Two Different Object Oriented Programming Language Source Codes
Similar type of source codes or repetition of source codes in the software is known code clones. Clone detection technique is capable of identifying the similar type of source codes present in software applications. These code clones increases the fault and maintenance cost. New source codes obtained from another source code without any proper changes lead to error. Detection of code clones hel...
متن کاملCLCMiner: Detecting Cross-Language Clones without Intermediates
The proliferation of diverse kinds of programming languages and platforms makes it a common need to have the same functionality implemented in different languages for different platforms, such as Java for Android applications and C# for Windows phone applications. Although versions of code written in different languages appear syntactically quite different from each other, they are intended to ...
متن کاملIncremental Detection of Parameterized Code Clones
This paper presents a new approach to incremental code clone detection that is based on a special clone representation model. The algorithm detects parameterized clones with parameters of arbitrary size. It can be used for cross-system and cross-revision clone detection.
متن کاملA Review: Clone Detection in Web Application Using Clone Metrics
In software engineering, the concept of code reuse is very common. Code reuse is the concept of copying and pasting the code in multiple places in the same software or different software without modification. In the last few decades numerous code clone detection technique and tools have been proposed for capturing duplicated redundant code, which is also known as software clone. In this study, ...
متن کاملTowards the Code Clone Analysis in Heterogeneous Software Products
Code clones are parts of source code that were usually created by copy-paste activities, with some minor changes in terms of added and deleted lines, changes in variable names, types used etc. or no changes at all. Clones in code decrease overall quality of software product, since they directly decrease maintainability, increase fault-proneness and make changes harder. Numerous researches deal ...
متن کامل